#ifndef MCLIENT_H
#define MCLIENT_H

#include <QMainWindow>
#include<QtNetwork/QTcpServer>
#include<QtNetwork/QTcpSocket>
#include<QtNetwork/QHostAddress>
#include"advertising.h"
#include <iostream>
#include"payment.h"

namespace Ui {
class mClient;
}

class mClient : public QMainWindow
{
    Q_OBJECT

public:
    explicit mClient(QWidget *parent = 0);
    ~mClient();
    QTcpSocket *socket;
    static QString str;
    //static int sell_num;


private slots:

    void on_host_connect_bt_clicked();
    void connect_host_success(void);
    void send_sell_num(int sell_num);
private:
    Ui::mClient *ui;
    QString equipment_num;
    QString name;
   // advertising *m_adv;
     //advertising *new_board;
    int sell_num;
    payment *m_pay;
    
};


#endif // MCLIENT_H
